

            
// This code is a generated code by a tool
// designed and coded by Shohdi Mohamed Elsheemy ( shohdi@gmail.com )

            
using System;
using System.Collections.Generic;
using System.Web;
namespace DatabaseComponent
{
[Serializable]
public partial class Country
{
System.Int64 _ID =-1;
public System.Int64 ID
{
get { return _ID;}
set { _ID = value;}
}
System.String _CountryNameAR ="";
public System.String CountryNameAR
{
get { return _CountryNameAR;}
set { _CountryNameAR = value;}
}
System.String _CountryNameEN ="";
public System.String CountryNameEN
{
get { return _CountryNameEN;}
set { _CountryNameEN = value;}
}
System.String _CountryCodeEN ="";
public System.String CountryCodeEN
{
get { return _CountryCodeEN;}
set { _CountryCodeEN = value;}
}
System.String _CountryCode ="";
public System.String CountryCode
{
get { return _CountryCode;}
set { _CountryCode = value;}
}
public Country()
{
}
public Country(System.String __CountryNameAR,System.String __CountryNameEN,System.String __CountryCodeEN,System.String __CountryCode)
{
_CountryNameAR = __CountryNameAR;
_CountryNameEN = __CountryNameEN;
_CountryCodeEN = __CountryCodeEN;
_CountryCode = __CountryCode;
}
public Country(System.Int64 __ID,System.String __CountryNameAR,System.String __CountryNameEN,System.String __CountryCodeEN,System.String __CountryCode)
{
_ID = __ID;
_CountryNameAR = __CountryNameAR;
_CountryNameEN = __CountryNameEN;
_CountryCodeEN = __CountryCodeEN;
_CountryCode = __CountryCode;
}


             public override bool Equals(object obj)
         {
             if (obj is Country)
             {
                 Country newObj = (Country)obj;

                 if (newObj.ID == this.ID )
                 {
                     return true;
                 }
                 else
                 {
                     return false;
                 }
             }

             else
             {
                 return false;
             }

            
         }            











             }
}
